package com.demo.service.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Mqtt配置
 */
@Component
@ConfigurationProperties(prefix = "mqtt")
@Data
public class MqttProperties {

    // MQTT主题
    private String topic;

    // MQTT代理服务器地址
    private String broker;

    // MQTT发布客户端ID
    private String publishClientId;

    // MQTT订阅客户端ID
    private String subscribeClientId;

    // MQTT用户名
    private String username;

    // MQTT密码
    private String password;

    // MQTT消息质量服务等级
    private Integer qos;

}
